﻿$(document).ready(function () {
    var input = $("input[type=file]");

    input.change(function () {
        var files = this.files;

        for (var i = 0, icount = files.length; i < icount; i++) {
            console.log(files[i].type.match(/image.*/));
        }
        alert('x');
    });
});